package com.sbwebsocket.core.model.bo;

import lombok.AllArgsConstructor;
import lombok.Data;

import java.util.Collections;
import java.util.List;

/**
 * 给某一指人发送指定消息(直连)
 */
@Data
@AllArgsConstructor
public class DirectBatchMessageBody extends NormalMessageBody{
    //发送给某个客户端列表
    private List<String> sendClientIdentitys;

    public DirectBatchMessageBody(String sendClientIdentity, String body) {
        this.sendClientIdentitys = Collections.singletonList(sendClientIdentity);
        this.setBody(body);
    }
}


